import request from '@/utils/request'

// 查询宿舍管理列表
export function listStay(query) {
  return request({
    url: '/business/stay/list',
    method: 'get',
    params: query
  })
}

// 查询宿舍管理详细
export function getStay(id) {
  return request({
    url: '/business/stay/' + id,
    method: 'get'
  })
}

// 新增宿舍管理
export function addStay(data) {
  return request({
    url: '/business/stay',
    method: 'post',
    data: data
  })
}

// 修改宿舍管理
export function updateStay(data) {
  return request({
    url: '/business/stay',
    method: 'put',
    data: data
  })
}

// 删除宿舍管理
export function delStay(id) {
  return request({
    url: '/business/stay/' + id,
    method: 'delete'
  })
}

// 导出宿舍管理
export function exportStay(query) {
  return request({
    url: '/business/stay/export',
    method: 'get',
    params: query
  })
}